﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DAL;

namespace HomeStayWebCP.Models
{
    public class RegionModel
    {
        RegionsDataModel model=new RegionsDataModel();
        public List<Region> SelectProvince()
        {
            return model.SelectProvince().ToList();
        }
        public  List<Region> SelectDistrict(int parentid)
        {
            return model.SelectDistrict(parentid).ToList();
        }
        public string SelectNameFromID(int id)
        {
            return model.SelectNameFromID(id);
        }
    }
}